<%@page
	import="eu.telecom_bretagne.RECRUT.data.model.DossierCandidature"%>
<%@page
	import="eu.telecom_bretagne.RECRUT.service.IServiceDossierCandidature"%>
<%@page import="eu.telecom_bretagne.RECRUT.data.model.Employe"%>
<%@page import="eu.telecom_bretagne.RECRUT.service.IServiceEmploye"%>
<%@page import="eu.telecom_bretagne.RECRUT.data.model.Entretien"%>
<%@page import="eu.telecom_bretagne.RECRUT.service.IServiceEntretien"%>
<%@page import="javax.naming.InitialContext"%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%
	InitialContext ctx = new InitialContext();
	/* IServiceDossierCandidature serviceDossierCandidature = (IServiceDossierCandidature) ctx
			.lookup(IServiceDossierCandidature.JNDI_NAME); */
	IServiceEmploye serviceEmploye = (IServiceEmploye) ctx
			.lookup(IServiceEmploye.JNDI_NAME);
	IServiceEntretien serviceEntretien = (IServiceEntretien) ctx
			.lookup(IServiceEntretien.JNDI_NAME);

/* 	int idD = Integer.parseInt(request.getParameter("idD"));
	DossierCandidature dossier = serviceDossierCandidature
			.lireDossierCandidature(idD); */
	int idE = Integer.parseInt(request.getParameter("idE"));
	Employe employe = serviceEmploye.lireEmploye(idE);
	int idEn = Integer.parseInt(request.getParameter("idEn"));
	Entretien entretien = serviceEntretien.lireEntretien(idEn);
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Information sur entretien</title>
</head>
<body>
	<h1>Information sur un entretien</h1>
	<table>
		<tr>
			<td>ID</td>
			<td><%=entretien.getId()%></td>
		</tr>
		<tr>
			<td>Date</td>
			<td><%=entretien.getDateEntretien()%></td>
		</tr>
	</table>
	<a href="liste_entretien.jsp?id=<%=entretien.getId()%>">Retour</a>
</body>
</html>